Learning Objectives

After completing this lesson, you’ll be able to:

Resources

Video

1) Open and Examine Workspace

Open the starting workspace template in FME Workbench (2023.0 or later).

2) Create Temporary Data

Let's pretend that the layer of VotingPlaces data has changed in some way. You can simulate that by simply opening a file browser and making a copy of the GML file.

You can do this by downloading ElectionVoting.gml and ElectionVoting.xsd, or by expanding the "ElectionVoting [GML]" Reader in the Navigator, double-clicking "Source Geography Markup Language (GML) File(s)", copying the directory, and pasting it into your file explorer. This will navigate you to the temporary folder where the workspace template data is stored.

Extracting data from a template

In either case, once you have a local copy of ElectionVoting.gml, duplicate it and name the new file NewElectionVoting.gml.

Note
You don't have to copy ElectionVoting.xsd - it's okay to use that schema file for the new GML dataset. We provide instructions on how to do this below.

3) Upload Temporary Data

We wish to run the workspace with the new data. To use the new dataset for the Source GML prompt, first, open the workspace in FME Flow (2023.0 or later). This workspace was published in the last exercise. Then, click the Browse Resources button:

Browse Resources on the Run Workspace page

Note
If the workspace only required one input file or multiple input files of the same format, we could click Upload File instead. But, in this workspace, the GML file requires an XSD file included to provide the schema. Therefore we use Browse Resources so we can upload more than one file.

In the dialog that opens, click the Temporary Uploads tab and then click on the Browse File System text:

Click Temporary Uploads, click Upload File button

 

Select both the files NewElectionVoting.gml and ElectionVoting.xsd and upload them. In the Selected Items panel, remove the ElectionVoting.gml and add the NewElectionVoting.gml

The ElectionVoting.xsd file needs to be uploaded, but it doesn't need to be selected.

Deselecting ElectionVoting.xsd

The file needs to be uploaded, but it doesn't need to be selected.

Note
If ElectionVoting.xsd were selected, FME would try to use it as the input GML file, which would cause an error.

Now click OK and then click the Run button.

The workspace will now run to completion using the uploaded dataset.

However - and this is the important part - this was only a temporary upload. The workspace can be re-run immediately, and the data will still appear in the temporary upload section, but it is not a permanent solution. The data will be cleaned up automatically within the default 24 hours unless an FME Flow Administrator has modified the clean-up task.